#ifndef RECEIVETHREAD_H
#define RECEIVETHREAD_H

#include <QThread>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include <QDebug>

class ReceiveThread:public QThread
{
    Q_OBJECT
public:
    //receiveThread:public QThread() {}
    ReceiveThread ( QSerialPort *mycom);
    void run();

private:
    QSerialPort *com;

signals:
    void comRecive();

};

#endif // RECEIVETHREAD_H
